import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeTest {

    public static void main (String[] args) throws Exception  {
        Date nowTime = new Date();
        System.out.println(nowTime);
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd HH EEE mm ss SSS ");
        String nowTimeStr = sdf.format(nowTime);
        System.out.println(nowTimeStr);
        String s = "2001/01/25";
        Date date =new SimpleDateFormat("yyyy/MM/dd").parse(s);
        System.out.println(date);
       long began = System.currentTimeMillis();
       System.exit(0);
       print();

        long end = System.currentTimeMillis();
        System.out.println((end - began)+"ms");
    }
    public static void print() {
        for (long i = 0; i < 1000000000000l; i++) {
            //System.out.println(i);
        }
    }
}
